<template>
  <div>
    <MyDialog :content="'你确定退出吗？'"></MyDialog>
    <MyDialog content="你确定删除吗？<input type='text' @input='onInput' />"></MyDialog>
  </div>
</template>

<script>
import MyDialog from "./components/MyDialog.vue"
export default {
  data() {
    return {}
  },
  components: {
    MyDialog,
  },
  methods: {
    onInput() {
      console.log('onInput触发了')
    }
  }
}
</script>

<style>
body {
  background-color: #b3b3b3;
}
</style>